import { DEFAULT_LAYOUT } from '../base';
import { type AppRouteRecordRaw } from '../types';
import { IconHome } from '@arco-design/web-vue/es/icon';
import i18n from '@/settings/i18n';

const routes: AppRouteRecordRaw = {
  path: '/welcome',
  redirect: '/welcome/index',
  component: DEFAULT_LAYOUT,
  meta: {
    title: i18n.global.t('settings.menu.home.title'),
    icon: IconHome,
    hideChildrenInMenu: true,
    order: 0,
    autoSetTitle: false,
  },
  children: [
    {
      path: 'index',
      component: () => import('@/settings/views/welcome/index.vue'),
      meta: {
      },
    },
  ],
};

export default routes;
